package com.minelx.autocha;

import org.openqa.selenium.chrome.ChromeDriver;

public interface IWebBrowser extends AutoCloseable {
	void open(String url);

	WebNode id(String name);

	WebNode selector(String selector);

	ChromeDriver coreDriver();

	@Override
	void close();

	default void close(long after) {
		WebNode.sleep(after);
		close();
	}
}
